package cn.cvs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_role")
public class SysRole implements Serializable {


  @TableId(type = IdType.AUTO)
  @TableField("role_id")
  private long roleId;
  @TableField("role_name")
  private String roleName;
  @TableField("role_desc")
  private String roleDesc;
  @TableField("role_flag")
  private long roleFlag;

  @TableField(exist = false)
  private List<SysRight> rights=new ArrayList<>();


  public long getRoleId() {
    return roleId;
  }

  public void setRoleId(long roleId) {
    this.roleId = roleId;
  }


  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }


  public String getRoleDesc() {
    return roleDesc;
  }

  public void setRoleDesc(String roleDesc) {
    this.roleDesc = roleDesc;
  }


  public long getRoleFlag() {
    return roleFlag;
  }

  public void setRoleFlag(long roleFlag) {
    this.roleFlag = roleFlag;
  }

}
